import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listExamlist(query) {
    return request({
        url: '/system/examlist/list',
        method: 'get',
        params: query
    })
}
// 提交更新状态【请填写功能名称】列表2
export function upstatus(data = {}, query, status) {
    return request({
        url: `/system/examlist/list?examid=${query}&status=${status}`,
        method: 'get',
        params: query,
        data: JSON.stringify(data)
    })
}
// 查询【请填写功能名称】详细
export function getExamlist(examid) {
    return request({
        url: '/system/examlist/' + examid,
        method: 'get'
    })
}

// 新增【请填写功能名称】
export function addExamlist(data) {
    return request({
        url: '/system/examlist',
        method: 'post',
        data: data
    })
}

// 修改【请填写功能名称】
export function updateExamlist(data) {
    return request({
        url: '/system/examlist',
        method: 'put',
        data: data
    })
}

// 删除【请填写功能名称】
export function delExamlist(examid) {
    return request({
        url: '/system/examlist/' + examid,
        method: 'delete'
    })
}

// 导出【请填写功能名称】
export function exportExamlist(query) {
    return request({
        url: '/system/examlist/export',
        method: 'get',
        params: query
    })
}